package com.xidata.dict.demo.service;

import org.apache.commons.lang3.RandomStringUtils;

import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class Generator {
    private static SimpleDateFormat TIME = new SimpleDateFormat("yyyyMMddHHmmssSSS");

    public static String nextOrderNo() {
        String s = TIME.format(new Date());
        return "T" + s + RandomStringUtils.randomAlphanumeric(10).toUpperCase();
    }

}
